package Exercise03;

public class teacher extends employee{
    private int classDays;
    private double classSal;

    public teacher(String name, double salary) {
        super(name, salary);
    }

    @Override
    public void print() {
        System.out.print("老师的年薪:>");
        System.out.println(getName() + "年工资:" + (getSalary() * getSalMonth() + classDays * classSal));
    }

    public int getClassDays() {
        return classDays;
    }

    public void setClassDays(int classDays) {
        this.classDays = classDays;
    }

    public double getClassSal() {
        return classSal;
    }

    public void setClassSal(double classSal) {
        this.classSal = classSal;
    }
}
